const { Container, Maybe } = require("./test3/support");
const fp = require("lodash/fp");
/**第三大题，第三小题 */
const user = {
  id: 1,
  name: "Albert",
};
const safeProp = fp.curry((x, o) => {
  return Maybe.of(o[x]);
});
let ex3 = (_user)=>{
  return safeProp("name",_user).map((value)=>{
    console.log('value: ', value,fp.first(fp.split("",value)));
    return fp.first(fp.split("",value))
  })
}
console.log("ex3",ex3(user));
